package gold.digger;

import gold.utils.InputUtil;

/**
 * Created by fanzhenyu02 on 2021/12/10.
 * common problem solver template.
 */
public class LC1374 {
    public long startExecuteTime = System.currentTimeMillis();


    class Solution {
        public String generateTheString(int n) {
            StringBuilder ans = new StringBuilder();
            if (n % 2 == 0) {
                for (int i = 0; i < n - 1; i++) ans.append('a');
                ans.append('b');
                return ans.toString();
            } else {
                for (int i = 0; i < n; i++) ans.append('a');
                return ans.toString();
            }
        }
    }

    public void run() {
        int[] arr = InputUtil.toIntegerArray("[1,2,3]");
        System.out.println(new Solution().toString());
    }

    public static void main(String[] args) throws Exception {
        LC1374 an = new LC1374();
        an.run();

        System.out.println("\ncurrent solution total execute time: " + (System.currentTimeMillis() - an.startExecuteTime) + " ms.");
    }
}
